<%--
    Document   : useredit
    Created on : 2012-3-16, 17:56:24
    Author     : xiaoxiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>用户编辑</title>
        <link href="css/global.css" rel="stylesheet" type="text/css">
        <link href="css/form.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <s:if test="%{#session.islogin}">
            <div id="contentWrap">
                <div id="main">
                    <h2>查看个人信息</h2>
                    <s:form action="infochange" method="post" name="signup" id="signup">
                        <div>
                            <label  class="label">用户名</label>
                            <s:textfield name="username" label="用户名" value="%{#session.username}" readonly="true"></s:textfield>
                        </div>
                        <div>
                            <label  class="label">邮箱</label>
                            <s:textfield name="email" label="邮箱" value="%{#session.email}" id="email" readonly="true"></s:textfield>
                        </div>
                    </s:form>
                </div>
            </div>
        </s:if>
        <s:else>
            <%
                        response.sendRedirect("login.jsp");
            %>
        </s:else>
    </body>
</html>
